<?php
  //Buffer larger content areas like the main page content
  ob_start();
?><?php 	include("config.php");

 require_once("auth.php"); ?><head>
 
 <style>
.tdclas{
font-family:Calibri, Arial;
font-size:18px;
font-stretch:extra-condensed;
color:#062F07
}
.rtdclass{
font-family:Calibri, Arial;
font-size:14px;
color:#000000;
}
</style>

 
 </head>
<?php 
if(isset($_REQUEST['id']))
{

$id=$_REQUEST['id'];
$data=mysql_query("select * from products where serial='$id'");
$no=mysql_num_rows($data);
if($no!=0)
{
	while($rec=mysql_fetch_assoc($data))
	{
?>


 <fieldset >
<legend style="color:#FD0002">Product Details </legend>
<table width="50%" style="font-family:Calibri; background-color:#FFFFFF" cellpadding="5" cellspacing="6" align="center">
<tr> <td width="47%" class="tdclas">Product Name : </td>
<td width="53%" class="rtdclass"><?php echo $rec['name']; ?></td>
</tr>
<tr> <td class="tdclas">Technical Specifications : </td>
  <td class="rtdclass"><?php echo $rec['description']; ?></td></tr>
<tr>
  <td class="tdclas" valign="top">Image :</td>
  <td class="rtdclass">  <img src="<?php $xx=$rec['picture'];
						    $x=explode ('/',$xx);						
						  echo  $rec['picture']; ?>" width="100px" height="100px" /><br />  <?php  echo  $x[1];?></td></tr>
						  <tr>
						    <td class="tdclas">Category : </td>
						    <td><?php echo $rec['category']; ?></td></tr>
<tr>
  <td class="tdclas">Price : </td>
  <td class="rtdclass"><?php echo $rec['price'];?></td></tr>
</table>
</fieldset>
<?php
}
}
}
?> <?php
  //Assign all Page Specific variables
  $pagemaincontent = ob_get_contents();
  ob_end_clean();
  $pagetitle = "Products";
  //Apply the template
  include("master.php");
?>    